package com.xx.springboot.test;/**
 * Created by xiaoxiunique on 2018-11-14.
 */

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.xx.springboot.entity.Blog;
import com.xx.springboot.service.IBlogService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.context.web.WebAppConfiguration;

import java.awt.*;
import java.util.List;
import java.util.stream.Collectors;

/**
 * <p>
 *  TODO:
 * </p>
 *
 * @author hcg
 * @date 2018-11-14 8:50
 * @className test
 */
@RunWith(SpringRunner.class)
@SpringBootTest
public class test {

    @Autowired
    private IBlogService blogService;

    @Autowired
    private RedisTemplate redisTemplate;

    @Test
    public void test1() {
        redisTemplate.opsForValue().set("test", "setRedis");
        System.out.println(redisTemplate.opsForValue().get("test"));
    }


    private void doAction(IFunction fun) {
        fun.doAction();
    }

}
